package com.anXin.apis.equipment;


import com.anXin.apis.article.fallback.IArticleClientFallback;
import com.anXin.apis.equipment.fallback.IEquipmentClientFallback;
import com.anXin.model.article.dtos.ArticleDto;
import com.anXin.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "anXin-service-equipment",fallback = IEquipmentClientFallback.class)
public interface IEquipmentClient {

    @GetMapping("/getEquipment")
    public ResponseResult getEquipment();
    @GetMapping("/getRateZones/{date}")
    public ResponseResult getRateZones(@PathVariable("date") String date);

    @GetMapping("/getBMI/{date}")
    public ResponseResult getBMI(@PathVariable("date") String date);

    @GetMapping("/getWeight/{date}")
    public ResponseResult getWeight(@PathVariable("date") String date);

    @GetMapping("/getCalories/{date}")
    public ResponseResult getCalories(@PathVariable("date") String date);

    @GetMapping("/getFloors/{date}")
    public ResponseResult getFloors(@PathVariable("date") String date);

    @GetMapping("/getSteps/{date}")
    public ResponseResult getSteps(@PathVariable("date") String date);

    @GetMapping("/getDistance/{date}")
    public ResponseResult getDistance(@PathVariable("date") String date);

    @GetMapping("/getElevation/{date}")
    public ResponseResult getElevation(@PathVariable("date") String date);

}
